import React from "react"
import ReactDOM from "react-dom"
import App from "./App"
import 'antd/dist/antd.min.css'

//导入antd和时间控件的中文语言包
import { ConfigProvider } from 'antd'
import 'moment/locale/zh-cn'
import locale from 'antd/lib/locale/zh_CN'
//设置语言包,将ConfigProvider组件包住App标签,并传入locale
ReactDOM.render(
    <ConfigProvider locale={locale}><App/></ConfigProvider> ,document.getElementById('root'))